
import axios from 'axios';
import '../../styles/LineChart.scss'
import React,{useEffect,useState} from 'react';
import * as echarts from 'echarts';
interface Props{
    option:any
}
function Mychart(props:Props) {
    useEffect(() => {
        var option = {...props.option}
        type EChartsOption = echarts.EChartsOption;
        var chartDom = document.getElementById('linechart')!;
        var myChart = echarts.init(chartDom);
        // var option: EChartsOption;
       

        option && myChart.setOption(option);

    })
    return (
        <div className='mychart'>
            
        </div>
    );
}

export default Mychart;